package cz.idsv.web.mvc.model.service;

import java.util.Collection;

import org.springframework.dao.DataAccessException;

import cz.idsv.web.mvc.model.entity.DocumentEntity;



/**
 * Document Service interface.
 * 
 * @author Marek Hruska
 */
public interface DocumentService {

    /**
     * Find documents.
     */
    public Collection<DocumentEntity> findDocuments() throws DataAccessException;
    
    /**
     * Saves document.
     */
    public void save(DocumentEntity documentEntity);
    
    
    /**
     * Delete document.
     */
    public void delete(DocumentEntity documentEntity);
    
    /**
     * Find document by id.
     */
    public DocumentEntity findDocumentById(Integer id) throws DataAccessException;
       

}

